/********************************************************/
/*	Copyright (C) 2016 Gong Li Bin			*/
/*	Project:	MapReduce			*/
/*	Author:		gong_libin			*/
/*	Date:		2016_06_01			*/
/*	File:		MrJob.h			*/
/********************************************************/

#ifndef	_MRJOB_H
#define	_MRJOB_H 

#include "MrDb.h"
#include "MrDef.h"
#include "MrPro.h"
#include "MrUdp.h"
#include "MrSet.h"
#include "MrUtl.h"
#include "MrConf.h"
#include "MrTime.h"
#include "MrMrDef.h"
#include "MrThread.h"

#include <getopt.h>
#include <signal.h>

#define	MR_JB_ID			0x01
#define	MR_JB_AVG			0x01

#define	MR_JB_POLL			0x01
#define	MR_JB_HOST			0x02

#define	MR_JB_PAIR			32
#define	MR_JB_DEVICE			128

typedef union tagMrJbAddr
{
	char m_szUrl[MR_URL];
	struct sockaddr_in m_stAddr;
}MRJBADDR_U;

typedef struct tagMrJbHost
{
	UINT m_uiID;
	MRJBADDR_U m_unAddr;
}MRJBHOST_S;

typedef struct tagMrJbPoll
{
	bool m_bStatus;
	MRJBHOST_S m_stHost;
}MRJBPOLL_S;

typedef struct tagMrJbPacket
{
	int m_iLength;
	UCHAR m_uszPacket[MR_BIGPACKET];
}MRJBPACKET_S;

#endif /* _MRJOB_H */
